from django.conf.urls.defaults import *
from django.conf import settings
# from mysite import views as sv
# from mysite.books import views as bv
# from mysite.contact import views as contactv


# Uncomment the next two lines to enable the admin:
from django.contrib import admin
admin.autodiscover()

urlpatterns = patterns('mysite',
    # Example:
    # (r'^mysite/', include('mysite.foo.urls')),

    # Uncomment the admin/doc line below to enable admin documentation:
    # (r'^admin/doc/', include('django.contrib.admindocs.urls')),

    # Uncomment the next line to enable the admin:
    (r'^admin/', include(admin.site.urls)),
    ('^hello/$', 'views.hello'),
    ('^time/$', 'views.current_datetime'),
    (r'^time/plus/(\d{1,2})/$', 'views.hours_ahead'),
    ('^meta/$', 'views.display_meta'),
    ('^search/$', 'books.views.search'),
    ('^contact/$', 'contact.views.contact'),
)

if settings.DEBUG:
    urlpatterns += patterns('',
        (r'^debuginfo/$', 'mysite.views.debug'),
    )
            
